<template>
  <el-container class="layout-container-facedb" style="height: 100%">
    <el-aside width="200px">
      <el-scrollbar>
        <el-menu :default-openeds="['1', '2']">
          <el-sub-menu index="1">
            <template #title>
              <el-icon>
                <Picture />
              </el-icon>声纹数据库
            </template>
            <el-menu-item-group>
              <template #title></template>
              <el-menu-item index="1-1">
                <router-link to="/voicedb">声纹底库展示</router-link>
              </el-menu-item>
              <el-menu-item index="1-2">
                <router-link to="/voicedb/voiceupload">上传声纹底库</router-link>
              </el-menu-item>
            </el-menu-item-group>

          </el-sub-menu>
          <el-sub-menu index="2">
            <template #title>
              <el-icon><icon-menu /></el-icon>以图搜图
            </template>
            <el-menu-item-group>
              <template #title></template>
              <el-menu-item index="2-1">
                <router-link to="/voicedb/voicecompare">1v1比对</router-link>
              </el-menu-item>
              <el-menu-item index="2-2">
                <router-link to="/voicedb/voicesearch">底库检索</router-link>
              </el-menu-item>
            </el-menu-item-group>
            
          </el-sub-menu>
        </el-menu>
      </el-scrollbar>
    </el-aside>

    <el-container>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>

</template>

<script setup>
import { Menu as IconMenu, Picture, Setting } from '@element-plus/icons-vue'

</script>

<style scoped>

.layout-container-facedb .el-header {
  position: relative;
  background-color: var(--el-color-primary-light-7);
  color: var(--el-text-color-primary);
}

.layout-container-facedb .el-aside {
  color: var(--el-text-color-primary);
  /* background: var(--el-color-primary-light-8); */
}

.layout-container-facedb .el-menu {
  border-right: none;
}

.layout-container-facedb .el-main {
  padding: 0;
}

.layout-container-facedb .toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  right: 20px;
}
</style>
